package com.etc.medical.client;

import com.etc.common.utils.Result;
import com.etc.medical.breaker.ExamineBreak;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

@FeignClient(value = "sp-cure",fallback = ExamineBreak.class)
public interface ExamineClient {
    @RequestMapping("/examine/queryExamine")
    Result queryExamine(@RequestParam("osId") String osId);
    @RequestMapping("/examine/queryOutpatient")
    Result queryOutpatient(@RequestParam("docId") String docId);
    @RequestMapping(value = "/examine/uploadFile",method = RequestMethod.POST,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result uploadFile(@RequestPart("file") MultipartFile file, @RequestParam("examineId") String examineId);

    @RequestMapping("/examine/queryExamineDoc")
    Result queryExamineDoc();
}
